package Com.amit.Reflection;

import java.lang.reflect.Constructor;
import java.lang.reflect.Field;
import java.lang.reflect.Method;

public class Lab7 {

	public static void main(String[] args) throws Exception {
		
		Class c=Class.forName(args[0]);
		
		System.out.println("Fileds");
		
		Field f[]=c.getDeclaredFields();
		
		for(int i=0;i<=f.length-1;i++)
		{
			System.out.println(f[i]);
		}
		
System.out.println("constructors");
		
Constructor con[]=c.getDeclaredConstructors();   
		
		for(int i=0;i<=con.length-1;i++)
		{
			System.out.println(con[i]);
		}
		
System.out.println("Methods");
		
   Method m[]=c.getDeclaredMethods(); 
		
		for(int i=0;i<=m.length-1;i++)
		{
			System.out.println(m[i]);
		}
	
	}

}
